package com.hcb.tonguetiphealth.model;

import java.util.List;




public class Ordered extends AbstractTask {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final int wine = 1;
	public static final int meal = 2;
	public static final int cate = 3;
	private String id;
	private String price;
	private String remark; //备注说明
	private String time;
	private String type;
	private List<Ordered> orderedList;
	
	//private SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	
	public String getId() {
		return formate(id);
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPrice() {
		return formate(price);
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getRemark() {
		return formate(remark);
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getTime() {
		/*long lTime = StringUtils.parseLong(time);
		lTime = lTime==0 ? System.currentTimeMillis() : lTime;
		Date curDate = new Date(lTime);
		formatter.format(curDate);
		return formate(formatter.format(curDate));*/

		return formate(time);
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getType() {
		return formate(type);
	}
	public void setType(String type) {
		this.type = type;
	}
	public List<Ordered> getOrderedList() {
		return orderedList;
	}
	public void setOrderedList(List<Ordered> orderedList) {
		this.orderedList = orderedList;
	}
}
